﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace MVC4WPF.Automation.Dialog
{
    /// <summary>
    /// Base interface used on MVC4WPF dialogs
    /// </summary>
    public interface IDialogBase
    {
        /// <summary>
        /// An item has been selected
        /// </summary>
        event EventHandler<EventArgs> ItemSelected;

        /// <summary>
        /// Displays the dialog in modal form to visual studio
        /// </summary>
        /// <returns>Boolean flag that determines if the dialog completed or if it was canceled.</returns>
        bool ShowDialog();
    }
}
